// +----------------------------------------------------------------------
// | 首页api请求
// +----------------------------------------------------------------------

import request from "@/utils/request.js";

/**
 * 举例get请求
 * 站内消息
 */
export function getStationMessage() {
	return request.get('common/stationMessage', {}, {
		noAuth: true
	});
}



/**
 * 首页轮播图
 */
export function getRotationChart() {
	return request.get('common/rotationChart?chart_state=1', {}, {
		noAuth: true
	});
}

/**
 * body功能
 * 金融垫资：financial_advances 
 * 推广：promotion 
 * 海外开证：overseas_issuance 
 * 担保车：guarantee_vehicle
 */
export function bodyFunList(key_value) {
	return request.get('common/bodyFunList?key=' + key_value, {}, {
		noAuth: true
	});
}


/**
 * 车源推广
 */
export function getPromotionList() {
	return request.get('common/carsPromotion', {}, {
		noAuth: true
	});
}

/**
 * 最新快报
 */
export function getLatestQuickReport() {
	return request.get('common/latestQuickReport', {}, {
		noAuth: true
	});
}

/**
 * 搜索推荐
 */
export function searchRecommend() {
	return request.get('common/searchRecommend', {}, {});
}

/**
 * 搜索推荐
 */
export function searchRecordsList(users_id,state) {
	return request.get('news/searchRecordsList?users_id='+users_id+'&state='+state, {}, {});
}

/**
 * 搜索结果
 */
export function searchResult(users_id,search) {
	return request.get('common/searchResult?users_id='+users_id+'&search='+search, {}, {});
}